@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">
            <input type="hidden" id="id" value="${item.id}">
            <input type="hidden" id="statusValue" value="${item.status}">
            <div class="row">
                <div class="col-sm-6 b-r">
                    <#input id="name" name="名称" value="${item.name}" underline="true"/>
                    <#input id="code" name="编码" value="${item.code}" underline="true"/>
                    <#select id="status" name="状态">
                        <option value="1">启用</option>
                        <option value="0">禁用</option>
                    </#select>
                </div>

                <div class="col-sm-6">
                    <#input id="pName" name="上级栏目" readonly="readonly" hidden="pid"
                            hiddenValue="${item.pid}" value="${pName!}"
                            clickFun="ItemInfoDlg.showItemSelectTree(); return false;"
                            style="background-color: #ffffff !important;" underline="true"/>
                    <#input id="num" name="排序号" value="${item.num}"/>
                </div>
            </div>

            <!-- 父级栏目的选择框 -->
            <div id="parentItemMenu" class="menuContent"
                 style="display: none; position: absolute; z-index: 200;">
                <ul id="parentItemTree" class="ztree tree-box" style="width: 245px !important;"></ul>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="ItemInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="ItemInfoDlg.close()"/>
                </div>
            </div>

        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/hw/item/item_info.js"></script>
@}
